//
// Created by Scave on 2025/8/25.
//

#include "EntityUtil.h"
#include "component/InternalComponent.h"

NS_RIDER_BEGIN

    Entity EntityUtil::FindRootEntity(EntityManager& entities) {
        for (const auto item: entities.entities_with_components<RenderNodes>()) {
            return item;
        }
        return {};
    }

NS_RIDER_END
